	// get current date
	function getCurrDate(){
		var date = new Date();
		return date;
	}
	
	
	// format date as yyyy-mm-dd
	function formatDate(obj){
    	var xYear=obj.getFullYear();
    	var xMonth=obj.getMonth()+1;
    	if(xMonth<10){
        	xMonth="0"+xMonth;
    	}

    	var xDay=obj.getDate();
    	if(xDay<10){
        	xDay="0"+xDay;
    	}

    	return xYear+"-"+xMonth+"-"+xDay;
	}
	
	function getCurrMillSeconds(){
		var currDate = getCurrDate();
		var currMillSeconds = currDate.getTime();
		return currMillSeconds;
	}